﻿using Microsoft.Xna.Framework.Graphics;

namespace main.src.game
{

    public class Game_Item : Game_Character
    {

        private static Texture2D[] Textures = {
                                           Program.Self.Content.Load<Texture2D>("rsc/item/Rock"),
                                           Program.Self.Content.Load<Texture2D>("rsc/item/Rat")
                                       };

        public Game_Item(byte id, byte direction)
        {
            Texture = Textures[id];
            Scale.X = Program.Width * 0.06f / Width;
            Scale.Y = Program.Height * 0.05f / Height;
            Direction = direction;
        }

        public override void Update()
        {
            base.Update();
            OX = Bounds.Width / 4;
            OY = Bounds.Height / 2;
            Degrees += 8;
            Move(Direction);
            FallSpeed = null;
        }

    }

}